import { t } from '@src/locales'
const invoiceFields = [ {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'bizNo',
  displayName: t('common.fields.businessLabel.displayName'),
  formType: 'taskNo',
  defaultValue: null,
  isNull: 0, 
  isSearch: 0,
  setting: {},
  orderId: 0,
  isDelete: 0,
  isEdit: 1, 
  show: true, 
  export: true, 
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'bizTypeName',
  displayName: t('bill.list.displayName.businessTypeName'),
  formType: 'select',
  defaultValue: null,
  isNull: 0, 
  isSearch: 0,
  operator: 'eq',
  setting: {},
  orderId: 0,
  isDelete: 0,
  isEdit: 1, 
  show: true, 
  export: true, 
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'linkmanName',
  displayName: t('customer.edit.correlationDialog.form.name.label'),
  formType: 'linkman',
  defaultValue: null,
  isNull: 0,
  isSearch: 0,
  placeHolder: t('common.placeholder.inputContact'),
  setting: {},
  orderId: 0,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'linkmanPhone',
  displayName: t('common.base.contactPhone'),
  formType: 'phone',
  defaultValue: null,
  isNull: 0,
  isSearch: 0,
  placeHolder: t('common.placeholder.inputContactPhone'),
  setting: {},
  orderId: 0,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'state',
  displayName: t('invoice.fields.invoiceState'),
  formType: 'select',
  defaultValue: null,
  isNull: 0,
  isSearch: 0,
  placeHolder: null,
  setting: {
    isMulti: false,
    dataSource: [{
      text: t('common.base.all'),
      value: 0,
    }, {
      text: t('invoice.fields.toBeInvoiced'),
      value: 1,
    }, {
      text: t('invoice.fields.invoiced'),
      value: 2,
    }, {
      text: t('invoice.fields.canceled'),
      value: 3,
    }],
  },
  orderId: 0,
  isDelete: 0,
  isEdit: 0,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'createTime',
  displayName: t('common.label.createTime'),
  formType: 'datetime',
  defaultValue: null,
  isNull: 0,
  isSearch: 1,
  placeHolder: null,
  setting: {},
  orderId: 0,
  isDelete: 0,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  fieldName: 'invoice_info',
  displayName: t('invoice.fields.invoiceInfo'),
  formType: 'separator',
  id: 11111,
  orderId: 0,
  isEdit: 1,
  show: false,
  isDelete: 0,
  isGuideData: true,
  isHidden: 0,
  isNull: 1,
  isSearch: 0,
  isSystem: 0,
  isVisible: true,
  placeHolder: '',
  setting: {
    isAuthorization: false
  },
  subFormFieldList: null,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'invoiceAmount',
  displayName: t('common.invoice.invoiceAmount'),
  formType: 'number',
  defaultValue: null,
  isNull: 0, // 是否开启校验
  isSearch: 0,
  setting: {},
  maxlength: 50,
  orderId: 0, // 排序
  isDelete: 0,
  isEdit: 1, // 是否在编辑页显示
  show: true, // 是否在列表页显示
  export: true, // 是否可以导出
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'invoiceType',
  displayName: t('common.invoice.invoiceType'),
  formType: 'text',
  defaultValue: null,
  isNull: 0, 
  isSearch: 0,
  operator: 'eq',
  setting: {},
  orderId: 1, 
  isDelete: 0,
  isEdit: 1, 
  show: true, 
  export: true, 
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'headType',
  displayName: t('common.invoice.headType'),
  formType: 'select',
  defaultValue: null,
  isNull: 0, 
  isSearch: 1,
  operator: 'eq',
  setting: {
    isMulti: false,
    dataSource: [
      {
      text: t('common.invoice.company'),
      value: 1,
    }, 
    {
      text: t('common.invoice.individuals'),
      value: 2,
    }],
  },
  orderId: 2, 
  isDelete: 0,
  isEdit: 1, 
  show: true, 
  export: true, 
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'invoiceHead',
  displayName: t('common.invoice.invoiceHead'),
  formType: 'text',
  defaultValue: null,
  isNull: 0,
  isSearch: 1,
  placeHolder: t('common.invoice.placeHolder.invoiceHead'),
  setting: {},
  maxlength: 50,
  orderId: 3,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'dutyParagraph',
  displayName: t('common.invoice.dutyParagraph'),
  formType: 'text',
  defaultValue: null,
  isNull: 0,
  isSearch: 1,
  placeHolder: t('common.invoice.placeHolder.dutyParagraph'),
  setting: {},
  maxlength: 50,
  orderId: 4,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'bankName',
  displayName: t('common.invoice.depositBank'),
  formType: 'text',
  defaultValue: null,
  isNull: 0,
  isSearch: 1,
  placeHolder: t('common.invoice.placeHolder.depositBank'),
  setting: {},
  maxlength: 50,
  orderId: 5,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'bankAccount',
  displayName: t('common.base.bankAcount'),
  formType: 'text',
  defaultValue: null,
  isNull: 0,
  isSearch: 1,
  placeHolder: t('common.invoice.placeHolder.bankAccountNo'),
  setting: {},
  maxlength: 50,
  orderId: 6,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'companyAddress',
  displayName: t('common.base.companyAddress'),
  formType: 'address',
  defaultValue: null,
  isNull: 0,
  isSearch: 0,
  setting: {},
  maxlength: 50,
  orderId: 7,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'companyPhone',
  displayName: t('common.invoice.companyPhone'),
  formType: 'phone',
  defaultValue: null,
  isNull: 0,
  isSearch: 0,
  setting: {},
  maxlength: 50,
  orderId: 8,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'recipientPhone',
  displayName: t('common.invoice.recipientPhone'),
  formType: 'phone',
  defaultValue: null,
  isNull: 0,
  isSearch: 0,
  setting: {},
  maxlength: 50,
  orderId: 9,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'recipientEmail',
  displayName: t('common.invoice.recipientEmail'),
  formType: 'email',
  defaultValue: null,
  isNull: 0,
  isSearch: 0,
  setting: {},
  maxlength: 50,
  orderId: 10,
  isDelete: 0,
  isEdit: 1,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'applyTime',
  displayName: t('invoice.fields.applyInvoiceTime'),
  formType: 'datetime',
  defaultValue: null,
  isNull: 0,
  isSearch: 1,
  placeHolder: null,
  setting: {},
  orderId: 11,
  isDelete: 0,
  show: true,
  export: true,
}, {
  tableName: 'invoice',
  isSystem: 1,
  fieldName: 'completeTime',
  displayName: t('invoice.fields.applyInvoiceedTime'),
  formType: 'datetime',
  defaultValue: null,
  isNull: 0,
  isSearch: 1,
  placeHolder: null,
  setting: {},
  orderId: 12,
  isDelete: 0,
  show: true,
  export: true,
}]

export {
  invoiceFields
}
